#!/bin/sh

sqoop import \
--connect jdbc:mysql://node101:3306/jtp_app_shujuku \
--driver com.mysql.jdbc.Driver \
--username root \
--password 123456 \
--query 'select id, name, region_id, area_code, iso_code, iso_3166_2 from base_province where 1=1 and $CONDITIONS;' \
--target-dir /warehouse/applet/base_province/2025-04-06 \
--delete-target-dir \
--fields-terminated-by "\001" \
--num-mappers 1 \
--null-string '\\N' \
--null-non-string '\\N'




